import request from '@/utils/request'

// 查询案卷任务列表
export function list(query) {
  return request({
    url: '/archives/task/list',
    method: 'get',
    params: query
  })
}

// 查询案卷任务详细
export function get(taskId) {
  return request({
    url: '/archives/task/' + taskId,
    method: 'get'
  })
}

// 新增案卷任务
export function add(data) {
  return request({
    url: '/archives/task',
    method: 'post',
    data: data
  })
}

// 修改案卷任务
export function update(data) {
  return request({
    url: '/archives/task',
    method: 'put',
    data: data
  })
}

// 删除案卷任务
export function del(taskId) {
  return request({
    url: '/archives/task/' + taskId,
    method: 'delete'
  })
}
